<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">
    <h:form>			
    <h:panelGrid columns = "1" style="margin-bottom:10px" cellpadding="5">
    <h:column>
    <p:menu>
		<p:submenu label="Navegacion">
			<c:choose>
			<c:when test="#{user.valueCargo() == 1}">
				<p:menuitem id="employee_redactar" value="Redactar" actionListener="#{empnvg.redactar()}" icon="ui-icon-document"/>
				<p:menuitem id="employee_solicitudes" value="Mis Solicitudes" actionListener="#{empnvg.mis_solicitudes()}" icon="ui-icon-folder-open"/>
				<p:menuitem id="employee_miperfil" value="Mi Perfil" actionListener="#{empnvg.mi_perfil()}" icon="ui-icon-person"/>
				<p:menuitem id="employee_salir" value="Salir" actionListener="#{empnvg.logout()}" icon="ui-icon-power"/>
			</c:when>
			<c:when test="#{user.valueCargo() == 2}">
				<p:menuitem id="employee_solicitudes" value="Mis Solicitudes" actionListener="#{omnvg.mis_solicitudes()}" icon="ui-icon-folder-open"/>
				<p:menuitem id="employee_miperfil" value="Mi Perfil" actionListener="#{omnvg.mi_perfil()}" icon="ui-icon-person"/>
				<p:menuitem id="employee_salir" value="Salir" actionListener="#{omnvg.logout()}" icon="ui-icon-power"/>
			</c:when>
			<!-- <c:when test="#{user.valueCargo() == 3}">
			
			</c:when>
			<c:otherwise>
				<p:menuitem id="home_sistemas" value="Sistemas UNMSM" url="http://www.sistemas.edu.pe/" icon="ui-icon-link"/>
			</c:otherwise>-->
			</c:choose>			
		</p:submenu>
	</p:menu>
	</h:column>
	</h:panelGrid>
	</h:form>
</ui:composition>